package magis;

import edu.byu.intex2.data.*;
import edu.byu.intex2.data.bo.*;

/**
 * Stores service variables during the service screen
 * @author Brady
 */
public class ServiceController {

    private Service service = null;

    // GUI Reference
    public Magis magis;

    /////////////////////////////////////////////
    ///   Singleton code
    private static ServiceController instance = null;

    /** Creates a new instance of EmployeeDAO */
    private ServiceController() {
    }//constructor

    /** Retrieves the single instance of this class */
    public static synchronized ServiceController getInstance() {
        if (instance == null) {
            instance = new ServiceController();
        }
        return instance;
    }//getInstance

    /**
     * @return the service
     */
    public Service getService() {
        return service;
    }

    /**
     * @param service the service to set
     */
    public void setService(Service service) {
        this.service = service;
    }

}
